body {
    font-family: sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}
.container {
    width: 100%;
    max-width: 800px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
h1, h2 { text-align: center; }
.api-key-container { margin-bottom: 20px; text-align: center; }
.tabs { overflow: hidden; border-bottom: 1px solid #ccc; margin-bottom: 20px; }
.tab-link {
    background-color: #f1f1f1;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: background-color 0.3s;
    font-size: 17px;
}
.tab-link:hover { background-color: #ddd; }
.tab-link.active { background-color: #ccc; }
.tab-content { display: none; padding: 6px 12px; border-top: none; }
.tab-content.active { display: block; }
.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: bold; }
input[type="text"], input[type="password"], textarea, select, input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
textarea { resize: vertical; min-height: 80px; }
button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}
button:hover { background-color: #45a049; }
#result-container { margin-top: 20px; text-align: center; }
#result-output img, #result-output video { max-width: 100%; border-radius: 4px; margin-top: 10px; }
.error { color: red; font-weight: bold; }
.hidden { display: none; }
.spinner {
    border: 4px solid rgba(0,0,0,0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #09f;
    animation: spin 1s ease infinite;
    margin: 20px auto;
}
.slider-group { display: flex; flex-direction: column; }
.slider-group label { display: flex; justify-content: space-between; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }